package com.common.vo.infect;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserVO {

        private Long id;

        @NotBlank(message = "用户姓名不能为空")
        private String username;

        @NotBlank(message = "用户昵称不能为空")
        private String nickname;

        @Email
        private String email;

        @NotBlank(message = "用户电话不能为空")
        private String phone_number;

        @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
        private Date create_time;

        @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
        private  Date modified_time;

        private Integer sex;

        @NotBlank(message = "密码不能为空")
        private String password;

        @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
        private Date birth;


        private String avatar;
}
